<?php 
require_once('lib/function.php');
$site = new siteFunction(); 
if(isset($_GET['cate'])&&!empty($_GET['cate'])&&array_key_exists($_GET['cate'],$site->echoCategoriesArr())){
   			
	$cate = $site->echoCateName($_GET['cate']); //中文名
	$cate_en = $_GET['cate'];//en名
	$page = (isset($_GET['page'])&&!empty($_GET['page']))? intval($_GET['page']):1;	 
	$sorttype = (isset($_GET['sorttype'])&&!empty($_GET['sorttype']))? intval($_GET['sorttype']):0;
	
	 		
}else{
	header("location:./");
}
 
$db = new mysql();
$totalNum = $db->fn_select_type_count($cate);
 ?>
<?php include('templates/head.html'); ?>
<?php include('templates/list.html'); ?>
<?php include('templates/footer.html'); ?>